tp1=()
tp2=(1,1.2,"hello",False,None,(),[])
print(tp1)
print(tp2)
a={'s':1,'v':"hello"}
print(a)
a={'s':1,'v':"hello",'y':88}
print("获取键名为v的值:",a['v'])
a['key']=12
print(a)
a['key']=50
print(a)
print(a['s'])
print('s' in a)
b={'key1':12,'key2':13}
a.update(b)
print(a)
print("获取a字典中键名为key的值：",a.get('key3'))
print("获取a字典中键名为key的值：",a['key'])
print("获取字典中所有的键:",a.keys())
for a1 in a.keys():
   print("键:",a1)
print("获取字典中所有的值:",a.values())
for a2 in a.values():
    print("值:",a2)
print("获取字典中所有键值对:",a.items())
for key,value in a.items():
    print("键:", key, "-------","值:",value)